From aa14d8b5f2ac932eaf38251e7a31dc1ccc1846cf Mon Sep 17 00:00:00 2001 From: Roger Pau Monne Date: Wed, 16 Apr 2014 16:13:30 +0200 Subject: [PATCH] gdbsx: remove cast from ioctl MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit The ulong type is not defined on FreeBSD, and the cast seems pointless, so just remove it. Signed-off-by: Roger Pau Monné Cc: Ian Jackson Acked-by: Ian Campbell Acked-by: Mukesh Rathor --- tools/debugger/gdbsx/xg/xg_main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/debugger/gdbsx/xg/xg_main.c b/tools/debugger/gdbsx/xg/xg_main.c index 0fc3f820ad..c95e4ede8a 100644 --- a/tools/debugger/gdbsx/xg/xg_main.c +++ b/tools/debugger/gdbsx/xg/xg_main.c @@ -180,7 +180,7 @@ _domctl_hcall(uint32_t cmd, /* which domctl hypercall */ hypercall.op = __HYPERVISOR_domctl; hypercall.arg[0] = (unsigned long)&domctl; - rc = ioctl(_dom0_fd, IOCTL_PRIVCMD_HYPERCALL, (ulong)&hypercall); + rc = ioctl(_dom0_fd, IOCTL_PRIVCMD_HYPERCALL, &hypercall); if (domctlarg && sz) munlock(domctlarg, sz); return rc; @@ -220,7 +220,7 @@ _check_hyp(int guest_bitness) hypercall.arg[0] = (unsigned long)XENVER_capabilities; hypercall.arg[1] = (unsigned long)&xen_caps; - rc = ioctl(_dom0_fd, IOCTL_PRIVCMD_HYPERCALL, (ulong)&hypercall); + rc = ioctl(_dom0_fd, IOCTL_PRIVCMD_HYPERCALL, &hypercall); munlock(&xen_caps, sizeof(xen_caps)); XGTRC("XENCAPS:%s\n", xen_caps); -- 2.30.2